import request from '@/utils/request'

export function queryByPage (data) {
  return request({
    url: '/evaluationHospital/queryByPage',
    method: 'post',
    data: data
  })
}

export function insert (data) {
  return request({
    url: '/evaluationHospital/insert',
    method: 'post',
    data: data
  })
}

export function update (data) {
  return request({
    url: '/evaluationHospital/update',
    method: 'post',
    data: data
  })
}

export function deleteById (data) {
  return request({
    url: '/evaluationHospital/deleteById',
    method: 'get',
    params: data
  })
}

export function queryByEvaUid (data) {
  return request({
    url: '/evaluationQuestion/queryByEvaUid',
    method: 'post',
    data: data
  })
}

export function queryQuestion (data) {
  return request({
    url: '/evaluationQuestion/queryByPage',
    method: 'post',
    data: data
  })
}

export function insertQuestion (data) {
  return request({
    url: '/evaluationQuestion/insert',
    method: 'post',
    data: data
  })
}

export function updateQuestion (data) {
  return request({
    url: '/evaluationQuestion/update',
    method: 'post',
    data: data
  })
}

export function deleteQuestion (data) {
  return request({
    url: '/evaluationQuestion/deleteById',
    method: 'get',
    params: data
  })
}

export function insertTemplate (data) {
  return request({
    url: '/evaluationHospital/insertTemplate',
    method: 'post',
    data: data
  })
}

export function getTemplate (data) {
  return request({
    url: '/evaluation/queryByPage',
    method: 'post',
    data: data
  })
}

